package org.yaac.server.egql.exception;

/**
 * not like EvaluationException, EGQLException is thrown immediately
 * 
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
public class EGQLException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private final String errorCode;

	/**
	 * @param errorCode
	 */
	public EGQLException(String errorCode) {
		super();
		this.errorCode = errorCode;
	}

	/**
	 * @return
	 */
	public String getErrorCode() {
		return errorCode;
	}
}
